package io.github.kouleen.manager.listener.player;

import io.github.kouleen.minecraft.core.lang.annotation.MinecraftPluginListener;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

/**
 * 玩家进入服务器事件
 * @author zhangqing
 * @since 2025/2/26 10:55
 */
@MinecraftPluginListener
public class PlayerJoinListener implements Listener {

    @EventHandler
    public void onPlayerJoinListener(PlayerJoinEvent playerJoinEvent){
        Player player = playerJoinEvent.getPlayer();
        System.out.println(player.getName() + " 触发了玩家进入服务器事件");
    }
}
